package com.elsa.server.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import com.elsa.common.annotation.ElsaCloudApplication;

/**
 * @projectName：elsa-server-demo
 * @typeName：ElsaServerDemoApp
 * @author：cos
 * @date：2021年5月10日
 * @version
 * @desc：资源服务器Demo模块
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)	//表示开启Spring Cloud Security权限注解
//@EnableElsaAuthExceptionHandler
@EnableFeignClients	//开启Feign Client功能
//@EnableElsaOauth2FeignClient
//@EnableElsaServerProtect
@ElsaCloudApplication
public class ElsaServerDemoApp{
    public static void main(String[] args) {
        SpringApplication.run(ElsaServerDemoApp.class, args);
    }
}
